(function($, doc) {	
	$.init({

    });

    $.ready(function () {
			Entry.GetInstByPlaceList(function(data) {
				if(data.status) {
					
					var HTMLListStr="";
					for (var i=0;i<data.data.length;i++) {
							HTMLListStr+="<li>"+
			 					"<a class='mui-navigate-right' href='train_place_detail.html?placeId="+data.data[i].inst.PlaceId+"'>"+
			 						"<img onerror=\"javascript:this.onerror=null;this.src='/XDriver/Content/images/no-pic.jpg'\"  src='"+data.data[i].ImgHost+data.data[i].inst.MasterPlaceImageUrl+"'>"+
			 						"<dl>"+
			 							"<dt>"+data.data[i].inst.Name+"</dt>"+
			 							"<dd><p>"+data.data[i].inst.Address+"</p></dd>"+
			 							"<dd class='mui-clearfix'>"+
			 								"<b>"+data.data[i].inst.DrvLicenseArgs+"</b>"+
			 								"<span>教练<i>"+data.data[i].inst.CoachCount+"</i>人</span> "+
			 							"</dd>"+
			 						"</dl>"+
			 					"</a>"+
			 				"</li>";
						}	
					document.getElementById("PlaceList").innerHTML=HTMLListStr;
				} else {
					mui.alert(data.message, null);
				}
			},
			function(data) {
				mui.alert('服务器维护中，请稍后再试！', null);
			});
			

    });
	
}(mui, document));  